//
//  UIColor+Extension.swift
//  MicroBlog
//
//  Created by QT on 15/8/8.
//  Copyright © 2015年 綦敦涛. All rights reserved.
//

import UIKit

extension UIColor{
    class func randomColor() -> UIColor{
        let color = UIColor(red: randomValue, green: randomValue, blue: randomValue, alpha: 1)
       return color
    }
    
    class var randomValue: CGFloat {
        return CGFloat(arc4random_uniform(256))/255
    }
}